<style>
    .tab-content > .chart {
        padding: 10px;
    }
</style>
<div class="row">
    <div class="col-lg-2 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-aqua">
            <div class="inner">
                <h3>{$total_pay|htmlentities}</h3>

                <p>今日销售额</p>
            </div>
            <div class="icon">
                <i class="fa fa-shopping-cart"></i>
            </div>
            <a href="#" class="small-box-footer"><i class="fa fa-arrow-circle-up"></i></a>
        </div>
    </div>
    <!-- ./col -->
    <div class="col-lg-2 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-green">
            <div class="inner">
                <h3>{$total_num|htmlentities}</h3>

                <p>今日订单数</p>
            </div>
            <div class="icon">
                <i class="fa fa-area-chart"></i>
            </div>
            <a href="#" class="small-box-footer"><i class="fa fa-arrow-circle-up"></i></a>
        </div>
    </div>
    <!-- ./col -->
    <div class="col-lg-2 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-green">
            <div class="inner">
                <h3>{$total_pay_wx|htmlentities}</h3>

                <p>今日微信支付额</p>
            </div>
            <div class="icon">
                <i class="fa fa-shopping-cart"></i>
            </div>
            <a href="#" class="small-box-footer"><i class="fa fa-arrow-circle-up"></i></a>
        </div>
    </div>
    <!-- ./col -->
    <div class="col-lg-2 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-aqua">
            <div class="inner">
                <h3>{$total_pay_zfb|htmlentities}</h3>

                <p>今日支付宝支付额</p>
            </div>
            <div class="icon">
                <i class="fa fa-shopping-cart"></i>
            </div>
            <a href="#" class="small-box-footer"><i class="fa fa-arrow-circle-up"></i></a>
        </div>
    </div>
    <!-- ./col -->
    <div class="col-lg-2 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-yellow">
            <div class="inner">
                <h3>{$today_user|htmlentities}</h3>

                <p>今日注册用户数</p>
            </div>
            <div class="icon">
                <i class="fa fa-users"></i>
            </div>
            <a href="#" class="small-box-footer"> <i class="fa fa-arrow-circle-up"></i></a>
        </div>
    </div>
    <!-- ./col -->
    <div class="col-lg-2 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-red">
            <div class="inner">
                <h3>{$all_user|htmlentities}</h3>

                <p>总注册人数</p>
            </div>
            <div class="icon">
                <i class="fa fa-user"></i>
            </div>
            <a href="#" class="small-box-footer"> <i class="fa fa-arrow-circle-up"></i></a>
        </div>
    </div>
    <!-- ./col -->
</div>
<!-- /.row -->
<div><br></div>
<div><br></div>
<!-- Main row -->
<div class="row" style="margin-bottom:5px;">
    <!-- Left col -->
    <section class="col-lg-12 connectedSortable">
        <!-- Custom tabs (Charts with tabs)-->
        <div class="nav-tabs-custom charts-custom">
            <!-- Tabs within a box -->
            <ul class="nav nav-tabs pull-right">
                <li class="active"><a href="#area-chart" data-toggle="tab">销售额</a></li>
                <li ><a href="#line-chart" data-toggle="tab">订单量</a></li>
                <li class="pull-left header"><i class="fa fa-inbox"></i> 销售趋势</li>
            </ul>
            <div class="tab-content no-padding">
                <!-- Morris chart - Sales -->
                <div class="chart tab-pane active" id="area-chart" style="position: relative; height: 435px;"></div>
                <div class="chart tab-pane" id="line-chart" style="position: relative; height: 435px;"></div>
            </div>
        </div>
        <!-- /.nav-tabs-custom -->

    </section>
    <!-- /.Left col -->
    <section class="col-lg-12 connectedSortable" style="display: none">

        <!-- solid sales graph -->
        <div class="box box-solid bg-teal-gradient">
            <div class="box-header">
                <i class="fa fa-th"></i>

                <h3 class="box-title">订单趋势</h3>

                <div class="box-tools pull-right">
                </div>
            </div>
            <div class="box-body border-radius-none">
                <div class="chart" id="smoothline-chart" style="height: 380px;"></div>
            </div>
            <!-- /.box-body-->
            <div class="box-footer no-border">
                <div class="row">
                    <div class="col-xs-12 text-center">
                        <div class="knob-label">统计最近一周订单的趋势</div>
                    </div>
                    <!-- ./col -->
                </div>
                <!-- /.row -->
            </div>
        </div>
        <!-- /.box -->

    </section>
    <!-- right col -->
</div>
<!-- /.row (main row) -->
<script>
    // var re_data = ['周一', '周二', '周三', '周四', '周五', '周六', '周八'];

    {if $totle_report_pay_key}
        var totle_report_pay_key = {$totle_report_pay_key};
    {else}
        var totle_report_pay_key = '';
    {/if}


    {if $totle_report_pay_val}
        var totle_report_pay_val = {$totle_report_pay_val};
    {else}
        var totle_report_pay_val = '';
    {/if}


    {if $totle_report_num_key}
        var totle_report_num_key = {$totle_report_num_key};
    {else}
        var totle_report_num_key = '';
    {/if}


    {if $totle_report_num_val}
        var totle_report_num_val = {$totle_report_num_val};
    {else}
        var totle_report_num_val = '';
    {/if}
</script>
